import tkinter as tk

win_width=900
win_height=450

class Application(tk.Frame):
    def __init__(self, master=None, bgcolor="#000000"):
        super().__init__(master) # super()方法
        self.master = master

        self.init_ui()

    def init_ui(self):
        pass

if __name__ == '__main__':
    root = tk.Tk()
    root.geometry(str(win_width)+"x"+str(win_height)+"+100+100")
    root.title("EEG软件")
    app = Application(master=root, bgcolor="gray")
    root.mainloop()